# reuqired version
cmake_minimum_required(VERSION 3.17)

# project name
project(Downloader)

# cpp standard
set(CMAKE_CXX_STANDARD 11)

# add macro
add_definitions(-DDOWNLOADER_WHOLE)

# build debug/release version
add_definitions(-DCMAKE_BUILD_TYPE=Debug)
# add_definitions(-DCMAKE_BUILD_TYPE=Release)

# add source
aux_source_directory(. DIR_SRCS)

# add target
add_executable(dw ${DIR_SRCS})

# add pthread lib
find_package(Threads)
target_link_libraries(dw ${CMAKE_THREAD_LIBS_INIT})
